<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户注册</title>
 <link rel="stylesheet" href="<%=request.getContextPath()%>/static/common/plugin/nice-validator/demo/demo.css">
</head>
<body>
<c:if test="${!empty mession }">
<Strong>${mession }</Strong>
</c:if>
<form class="form" data-validator-option="{timely:2, focusCleanup:true}" action="<%=request.getContextPath()%>/CompanyServlet?command=register" method="post">
  <div class="form-item">
        <label class="label">Code</label>
        <input type="text" name="code" 
            data-rule="required;username;"
            data-rule-username="[/[\w\d]{4,30}/, 'Please enter 3-12 digits, letters, underscores']"
            data-tip="You can use letters, numbers and periods"
           
        >
    </div>

    <div class="form-item">
        <label class="label">name</label>
        <input type="text" name="username" 
            data-rule="required;username;"
            data-rule-username="[/[\w\d]{4,30}/, 'Please enter 3-12 digits, letters, underscores']"
            data-tip="You can use letters, numbers and periods"
          
        >
    </div>
    <div class="form-item">
        <label class="label">Password</label>
        <input type="password" name="pwd"
            data-rule="Password: required; length(8~16)"
            data-tip="Please fill in at least eight characters"
          
        >
    </div>
    <div class="form-item">
        <label class="label">Verify Password</label>
        <input type="password" name="pwdAgain" data-rule="Verify Password: required; match(pwd)"  >
    </div>
  <div class="form-item">
        <label class="label">Linkman</label>
        <input type="text" name="linkman" data-rule="required;linkman"  >
    </div>
  
    <div class="form-item">
        <label class="label">Email</label>
        <input type="text" name="email" data-rule="required;email"  >
    </div>
        <div class="form-item">
        <label class="label">Address</label>
        <input type="text" name="address" data-rule="required;address"  >
    </div>
    <div class="form-item">
        <label class="label">Phone</label>
        <input type="text" name="phone" data-rule="required;phone" >
    </div>
    <div class="form-item">
        <label class="label">Number</label>
        <input type="text" name="number" data-rule="required;number" >
    </div>
    <div class="form-item">
        <label class="label">Slogan</label>
        <input type="text" name="slogan" data-rule="required;slogan" >
    </div>
	

	<div class="form-item">
        <label><input type="checkbox" id="agree_arguments" data-rule="checked">I agree to the service agreement.</label>
    </div>

    <div class="form-item">
        <button type="submit">Submit</button>
        <button onclick="index()">返回首页</button>
    </div>

</form>

<script src="http://dn-nice.qbox.me/libs/jquery/1.x/jquery.min.js"></script>
<script src="<%=request.getContextPath()%>/static/common/plugin/nice-validator/jquery.validator.js?local=en"></script>
<script >
function index(){
	location='<%=request.getContextPath() %>/index.jsp';
}



</script>
</body>
</html>